package vshevchuk;


import java.util.ArrayList;

public class BList extends  ArrayList<Base>
{	
	IDS ds = new ds_csv();
	
	public void setDS( IDS ds )
	{
		this.ds = ds;
	}
	
	public void setDS( String dsName )
	{
		ds = dsFactory.getInstance( dsName );
	}

	public void save() throws Exception
	{
		ds.Save(this);	
	}
	
	public void load() throws Exception
	{
		this.clear();
		this.addAll( ds.Load() );
	}	
}
